package com.mapper;

import com.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    //login
    @Select("select * from t_user where username = #{username} and password = #{password}")
    public User login(User user);
    //update
    @Update("update t_user set password = #{password} where id = #{id}")
    void updatepwd(User user);
}
